#include "route.h"
#include <algorithm>

namespace Game 
{
	Route::Route(const Point* p, int l)
	{
		points = new Point[l];
		std::copy(p, p+l, points);
		length = l;
		curPoint = 0;
	}

	Route::~Route()
	{
		delete[] points;
	}
}